﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using CML.Data;
using CML.Data.Instructions;

namespace CML.Services.Interfaces
{
	public interface IInstructionService
	{
		void Add(XmlDocument doc, AddXmlInstruction i);

		void Update(XmlDocument doc, UpdateXmlInstruction i);

		void Delete(XmlDocument doc, DeleteXmlInstruction i);

		void Add(IList<Property> pl, AddPropertyInstruction i);

		void Update(IList<Property> pl, UpdatePropertyInstruction i);

		void Delete(IList<Property> pl, DeletePropertyInstruction i);

		void ApplyXmlInstruction(XmlDocument doc, Instruction i);

		void ApplyPropertyInstruction(IList<Property> pl, Instruction i);
	}
}
